import 'package:flutter/cupertino.dart';
import 'package:flutter_app/1_base/71_life_state.dart';
import 'package:go_router/go_router.dart';

import 'home_page.dart';
import 'login/login_page.dart';

final appRouter = GoRouter(
  observers: [lifeObserver],
  routes: [
    GoRoute(
      path: '/',
      builder: (context, state) => HomePage(),
    ),
    GoRoute(
      name: 'login',
      path: '/login',
      // builder: (context, state) => RywLoginPage(),
      pageBuilder: (context, stata) => CupertinoPage(
        child: RywLoginPage(),
      ),
    ),
  ],
);
